import {Component, OnInit, ViewChild} from '@angular/core';
import {ToastComponent} from 'ngx-weui';

@Component({
  selector: 'app-editpatient',
  templateUrl: './editpatient.component.html',
  styleUrls: ['./editpatient.component.css']
})
export class EditpatientComponent implements OnInit {

  @ViewChild('success') successToast: ToastComponent;
  @ViewChild('loading') loadingToast: ToastComponent;
  name: '';
  ID: '' ;
  mobile: '';
  cardId: '';

  onShow(type: 'success' | 'loading') {
    (<ToastComponent>this[`${type}Toast`]).onShow();
  }
  ngOnInit () {

  }

}
